package org.sportspace.base.domain

/**
 * 系统消息
 */
class Message {
    
    String id
    //可以为空，则是系统消息
    UserInfo sendUser
    UserInfo receiveUser
    String status
    String message
    String sendDate
    String openDate

    static constraints = {
        sendUser(nullable:true)
        openDate(nullable:true)
        message(size:1..2000)
    }
    static mapping = {
        id(generator:'uuid')
    }
}
